# 
#  This material contains proprietary software of Entropic Speech, Inc.   
#  Any reproduction, distribution, or publication without the the prior	   
#  written permission of Entropic Speech, Inc. is strictly prohibited.
#  Any public distribution of copies of this work authorized in writing by
#  Entropic Speech, Inc. must bear the notice			
# 								
#      "Copyright (c) 1987 Entropic Speech, Inc.; All rights reserved"
# 				
#
# makefile for fea_ana @(#)makefile	1.1 9/23/87 ESI
 	
CFLAGS = $(PROGCFLAGS)
SINC = /usr/include/sps
SPSLIB = /usr/lib/libesps.a
MANDIR = /usr/esps/man.local
SINC   = /usr/include/sps
BINDIR = /usr/esps/bin.local
OLDBIN = /usr/esps/bin.local/old
LINT = att lint
PROGMOD = 0750
MANMOD = 0640

SRCS = ana2fea.c fea2ana.c
OBJS = ana2fea.o fea2ana.o
PROGS = ana2fea fea2ana

all:		$(PROGS)

ana2fea:	ana2fea.o  $(LIB)
		cc  $(CFLAGS) ana2fea.o  $(SPSLIB) -o ana2fea
    

fea2ana:	fea2ana.o  $(LIB)
		cc $(CFLAGS) fea2ana.o  $(SPSLIB) -o fea2ana
    
$(OBJS):	$(SINC)/sps.h $(SINC)/fea.h $(SINC)/anafea.h $(SINCL)/ana.h

clean:
		rm -f $(OBJS) $(PROGS) lint


lint:		
		$(LINT) ana2fea.c fea2ana.c  $(LINTLIB) > lint

install:	$(PROGS)
		-strip ana2fea
		-mv -f $(BINDIR)/ana2fea $(OLDBIN)/ana2fea
		mv  ana2fea $(BINDIR)/ana2fea
		chmod $(PROGMOD) $(BINDIR)/ana2fea
		-diffmk $(MANDIR)/man1/ana2fea.1 ana2fea.1 diff1
		-rm -f $(MANDIR)/man1/ana2fea.1
		cp ana2fea.1 $(MANDIR)/man1/ana2fea.1
		chmod $(MANMOD) $(MANDIR)/man1/ana2fea.1
		-strip fea2ana
		-mv -f $(BINDIR)/fea2ana $(OLDBIN)/fea2ana
		mv -f fea2ana $(BINDIR)/fea2ana
		chmod $(PROGMOD) $(BINDIR)/fea2ana
		-diffmk $(MANDIR)/man1/fea2ana.1 fea2ana.1 diff1
		cp fea2ana.1 $(MANDIR)/man1/fea2ana.1
		chmod $(MANMOD) $(MANDIR)/man1/fea2ana.1
